# -*- coding:utf-8 -*-
# @Time: 2020/9/2 11:38
# @Author: liupengfei
# @File: filters.py

import django_filters

from .models import AdornPedia, AdornPediaImgs


class AdornPediaFilter(django_filters.FilterSet):
    name = django_filters.CharFilter(field_name='name', lookup_expr='icontains')

    class Meta:
        model = AdornPedia
        fields = '__all__'


class AdornPediaImgsFilter(django_filters.FilterSet):
    class Meta:
        model = AdornPediaImgs
        fields = '__all__'
